<?php if($now % $sl == 0 && $now>0):?>
    <? $advertiser =  $this->requestAction(array('controller' => 'advertisers', 'action' => 'view','position'=>1)); ?>
    <?php if($advertiser):?>
        <div align="center">
        <?php if($advertiser['Advertiser']['type']=='2'):?>        
            <?php echo $advertiser['Advertiser']['code'];?>
        <?php else:?>
            <a href="<?php echo $advertiser['Advertiser']['link']?>">
            <?php  echo $html->showImage('Advertiser', $advertiser['Attachment'][0], array( 'alt' => sprintf(__l('[Image: %s]'), $html->cText($advertiser['Advertiser']['name'], false))));?>
            </a>
        <?php endif;?>
        </div>
    <?php endif;?>
<?php endif;?>